#!/bin/bash
echo "[ ====== 关闭Redis集群 ======== ]"
echo "[ ==== 检测是否有Redis启动 ==== ]"
# 获取所有redis相关的进程
for item in `ps -ef | grep -v grep | grep redis | awk '{print $2}'`
do
    echo $item
    kill -9 $item
done
echo "[ ==== 关闭Redis相关服务 ==== ]"



